package com.qianfeng.biquge.mapper;

import com.qianfeng.biquge.dto.UserDto;
import com.qianfeng.biquge.pojo.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface UserMapper {

    void addUser(UserDto userDto);

    @Select("select * from users where username=#{username} ")
    Users getUserByuserName(UserDto userDto);

    int updateUser(Users users);

    @Select("select * from users")
    List<Users> getAllUser();

}
